package com.utils;

import com.bean.anno.BaseConfig;
import com.mapper.repository.mysql.BaseConfigRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class APIUtils {

    @Autowired
    private BaseUtils baseUtils;

    public String getGreetingMessage() {
        String param = baseUtils.getBaseConfigByName("getGreetingMessage");
        try {
            String response = HttpUtil.doGets(param);
            System.out.println(response);
            return response;
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

}
